
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Swagger UI</title>
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.24.2/swagger-ui.css" >
    <link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
    <link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
    <style>
        html
        {
            box-sizing: border-box;
            overflow: -moz-scrollbars-vertical;
            overflow-y: scroll;
        }
        *,
        *:before,
        *:after
        {
            box-sizing: inherit;
        }

        body {
            margin:0;
            background: #fafafa;
        }
    </style>
</head>

<body>

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0">
    <defs>
        <symbol viewBox="0 0 20 20" id="unlocked">
            <path d="M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"></path>
        </symbol>

        <symbol viewBox="0 0 20 20" id="locked">
            <path d="M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"/>
        </symbol>

        <symbol viewBox="0 0 20 20" id="close">
            <path d="M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"/>
        </symbol>

        <symbol viewBox="0 0 20 20" id="large-arrow">
            <path d="M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"/>
        </symbol>

        <symbol viewBox="0 0 20 20" id="large-arrow-down">
            <path d="M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"/>
        </symbol>


        <symbol viewBox="0 0 24 24" id="jump-to">
            <path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"/>
        </symbol>

        <symbol viewBox="0 0 24 24" id="expand">
            <path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/>
        </symbol>

    </defs>
</svg>

<div id="swagger-ui"></div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.24.2/swagger-ui-bundle.js"> </script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.24.2/swagger-ui-standalone-preset.js"> </script>
<script>
    window.onload = function() {
        const ui = SwaggerUIBundle({
            spec: {
    "swagger": "2.0",
    "info": {
        "title": "prod/proto/api.proto",
        "version": ""
    },
    "schemes": [
        "http",
        "https"
    ],
    "consumes": [
        "application/json",
        "multipart/form-data"
    ],
    "produces": [
        "application/json"
    ],
    "paths": {
        "/ping": {
            "get": {
                "summary": "健康检查",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.DefaultResp"
                        }
                    }
                },
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod.Prod/CheckStoreMenuProperty": {
            "get": {
                "summary": "获取门店供货组是否允许改价",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.CheckStoreMenuPropertyResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "sg_id",
                        "description": "品牌ID",
                        "in": "query",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "store_id",
                        "description": "门店ID",
                        "in": "query",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod.Prod/SelectionMenuProdList": {
            "get": {
                "summary": "商城rpc门店模式获取供货组商品列表",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.GetProdListResponse"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "sg_id",
                        "description": "品牌ID",
                        "in": "query",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "p_store_id",
                        "description": "总部/门店ID",
                        "in": "query",
                        "required": false,
                        "type": "integer"
                    },
                    {
                        "name": "prod_ids",
                        "description": "货架商品ID序列",
                        "in": "query",
                        "required": false,
                        "type": "array",
                        "items": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "query_type_id",
                        "description": "分类ID",
                        "in": "query",
                        "required": false,
                        "type": "integer"
                    },
                    {
                        "name": "query",
                        "description": "商品名称",
                        "in": "query",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "page_no",
                        "description": "页数,min=1",
                        "in": "query",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "page_size",
                        "description": "每页数量（不超过100）,min=1,max=100",
                        "in": "query",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod.Prod/SelectionMenuProdsFull": {
            "get": {
                "summary": "获取待更新货架商品列表（用于下游系统，如商城等，查看商品库/供货组商品更新信息，需p_store_id），不支持http",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.SelectionProdsFullResponse"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "sg_id",
                        "description": "品牌ID",
                        "in": "query",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "p_store_id",
                        "description": "店铺ID(用于匹配供货组ID)",
                        "in": "query",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "ids",
                        "description": "对象ID序列,unique",
                        "in": "query",
                        "required": true,
                        "type": "array",
                        "items": {
                            "type": "integer"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod.Prod/SelectionProdInfo": {
            "get": {
                "summary": "商城rpc获取商品详情(用于C端查询)",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.ProdView"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "sg_id",
                        "description": "品牌ID",
                        "in": "query",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "p_store_id",
                        "description": "总部/门店ID",
                        "in": "query",
                        "required": false,
                        "type": "integer"
                    },
                    {
                        "name": "prod_id",
                        "description": "品牌ID",
                        "in": "query",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "skip_check",
                        "description": "是否跳过检查p_store_id（针对前端加载已下架/删除商品详情特殊处理）",
                        "in": "query",
                        "required": false,
                        "type": "boolean"
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod.Prod/SelectionProdsFull": {
            "get": {
                "summary": "获取待更新商品库商品列表（用于下游系统，如仓库等，查看商品更新信息，无需p_store_id），不支持http",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.SelectionProdsFullResponse"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "sg_id",
                        "description": "品牌ID",
                        "in": "query",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "ids",
                        "description": "对象ID序列,unique",
                        "in": "query",
                        "required": true,
                        "type": "array",
                        "items": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "need_store_price",
                        "description": "是否需要返回供货组规格价格",
                        "in": "query",
                        "required": false,
                        "type": "boolean"
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod/common/nsq/retry": {
            "get": {
                "summary": "消息重试",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "limit",
                        "description": "重试条数",
                        "in": "query",
                        "required": false,
                        "type": "integer"
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod/import-task/list": {
            "get": {
                "summary": "查看商品导入任务列表",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.TaskListResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.TaskListRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod/import-task/progress": {
            "get": {
                "summary": "任务进度，传入任务ID",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.TaskProgress"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.CommonObjectRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod/import-task/upload": {
            "post": {
                "summary": "批量导入商品",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.ImportTaskResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.ImportProdRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod/menu/copy": {
            "post": {
                "summary": "复制供货组（基于供货组ID）",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.CommonObjectRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod/menu/info": {
            "get": {
                "summary": "查看供货组基本属性",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.MenuView"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.CommonObjectRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            },
            "delete": {
                "summary": "删除供货组（基于供货组ID）",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.CommonObjectRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            },
            "post": {
                "summary": "新建供货组",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.CreateMenuRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            },
            "put": {
                "summary": "修改供货组",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.EditMenuRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod/menu/list": {
            "get": {
                "summary": "查看供货组列表（含关联门店）",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.GetMenuListResponse"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.CommonRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod/menu/prod": {
            "get": {
                "summary": "查看供货组商品列表",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.GetProdListResponse"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.GetMenuProdListRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            },
            "delete": {
                "summary": "批量将商品移除供货组",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.BatchMenuProdsRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            },
            "post": {
                "summary": "批量导入商品到供货组",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.BatchMenuProdsRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            },
            "put": {
                "summary": "修改供货组商品价格",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.EditMenuProdRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod/menu/store": {
            "post": {
                "summary": "设置供货组关联门店",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.SetMenuStoresRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod/prod-info": {
            "get": {
                "summary": "查看商品详情",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.ProdView"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.GetProdInfoRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            },
            "post": {
                "summary": "新增商品",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.ProdView"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.CreateProdRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            },
            "put": {
                "summary": "编辑商品",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.ProdView"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.EditProdRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod/prod-list": {
            "get": {
                "summary": "查看商品列表",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.GetProdListResponse"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.GetProdListRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            },
            "delete": {
                "summary": "批量删除商品",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.CommonObjectListRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod/property-group": {
            "get": {
                "summary": "查看属性组列表",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.GetPropertyGroupResponse"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.GetPropertyGroupRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            },
            "delete": {
                "summary": "删除属性组",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.DeletePropertyGroupRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            },
            "post": {
                "summary": "新建属性组",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.CreatePropertyGroupRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            },
            "put": {
                "summary": "编辑属性组",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.EditPropertyGroupRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod/selection/prod-type": {
            "get": {
                "summary": "查询二级商品类别列表",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.SelectionProdTypesResponse"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.SelectionProdTypesRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod/selection/sku": {
            "get": {
                "summary": "查看商品对象列表，不支持http",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.SelectionObjectListResponse"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "sg_id",
                        "description": "品牌ID",
                        "in": "query",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "object_keys",
                        "description": "商品规格列表,unique,dive,contains=-",
                        "in": "query",
                        "required": true,
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod/stats/nature": {
            "get": {
                "summary": "查看商品类型概况",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.GetProdNatureResponse"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.CommonRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        },
        "/prod/type": {
            "get": {
                "summary": "查看商品类别列表",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.GetProdTypeListResponse"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.GetProdTypeListRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            },
            "delete": {
                "summary": "删除商品类别",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.CommonObjectRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            },
            "post": {
                "summary": "新建商品类别",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.CommonObjectResponse"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.CreateProdTypeRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            },
            "put": {
                "summary": "编辑商品类别",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.prod.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.prod.EditProdTypeRequest"
                        }
                    }
                ],
                "tags": [
                    "prod.Prod"
                ]
            }
        }
    },
    "definitions": {
        ".google.protobuf.Empty": {
            "type": "object",
            "properties": {},
            "description": "A generic empty message that you can re-use to avoid defining duplicated\n empty messages in your APIs. A typical example is to use it as the request\n or the response type of an API method. For instance:\n\n     service Foo {\n       rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n     }\n\n The JSON representation for `Empty` is empty JSON object `{}`."
        },
        ".prod.BatchMenuProdsRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "menu_id": {
                    "type": "integer",
                    "description": "供货组ID"
                },
                "prod_ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    },
                    "description": "商品ID序列"
                }
            }
        },
        ".prod.CheckStoreMenuPropertyRequest": {
            "type": "object",
            "properties": {
                "sg_id": {
                    "type": "integer",
                    "description": "品牌ID"
                },
                "store_id": {
                    "type": "integer",
                    "description": "门店ID"
                }
            },
            "required": [
                "sg_id",
                "store_id"
            ]
        },
        ".prod.CheckStoreMenuPropertyResp": {
            "type": "object",
            "properties": {
                "can_modify_price": {
                    "type": "boolean",
                    "description": "供货组是否允许经销商改价"
                }
            }
        },
        ".prod.CommonObjectListRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    },
                    "description": "对象ID序列,unique,dive,"
                }
            },
            "required": [
                "ids"
            ]
        },
        ".prod.CommonObjectRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "id": {
                    "type": "integer",
                    "description": "对象ID"
                }
            },
            "required": [
                "id"
            ]
        },
        ".prod.CommonObjectResponse": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "新建对象ID"
                }
            }
        },
        ".prod.CommonRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                }
            }
        },
        ".prod.CommonRetryRequest": {
            "type": "object",
            "properties": {
                "limit": {
                    "type": "integer",
                    "description": "重试条数"
                }
            }
        },
        ".prod.CreateMenuRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "name": {
                    "type": "string",
                    "description": "供货组名称,min=1,max=50"
                },
                "pic": {
                    "type": "string",
                    "description": "供货组图片(可空),max=100"
                },
                "can_modify_price": {
                    "type": "boolean",
                    "description": "供货组是否允许经销商改价"
                }
            },
            "required": [
                "name"
            ]
        },
        ".prod.CreateProdRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "nature": {
                    "type": "integer",
                    "description": "商品类型,in_enum"
                },
                "prod_type_id": {
                    "type": "integer",
                    "description": "商品类别ID"
                },
                "name": {
                    "type": "string",
                    "description": "商品名称，最多100字,min=1,max=100,excludes=/"
                },
                "phonetic": {
                    "type": "string",
                    "description": "拼音简码(超过10字时，取前10字拼音首字母作为拼音简码),max=10"
                },
                "unit": {
                    "type": "string",
                    "description": "零售单位，最多4个字,min=1,max=4"
                },
                "title_pics": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "主图列表，最多4张图片，单个图片链接最多100个字符,min=0,max=4,dive,max=100,endswith=jpg|endswith=jpeg|endswith=png|endswith=gif|endswith=mp4"
                },
                "detail_pics": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "明细图片列表，最多20张图片，单个图片链接最多100个字符,min=0,max=20,dive,max=100,endswith=jpg|endswith=jpeg|endswith=png|endswith=gif|endswith=mp4"
                },
                "detail_description": {
                    "type": "string",
                    "description": "明细描述,max=300"
                },
                "sku_list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.CreateSkuView"
                    },
                    "description": "规格列表,min=1,max=20"
                }
            },
            "required": [
                "nature",
                "prod_type_id",
                "name",
                "unit",
                "sku_list"
            ]
        },
        ".prod.CreateProdTypeRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "name": {
                    "type": "string",
                    "description": "类别名称, 1~50字符，不允许包含斜线,min=1,max=50,excludes=/"
                },
                "parent_id": {
                    "type": "integer",
                    "description": "父类别ID(一级类目传0，其他传父类目ID)"
                },
                "nature": {
                    "type": "integer",
                    "description": "商品类型,in_enum"
                }
            },
            "required": [
                "nature"
            ]
        },
        ".prod.CreatePropertyGroupRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "nature": {
                    "type": "integer",
                    "description": "商品类型"
                },
                "name": {
                    "type": "string",
                    "description": "分组名称，最多10个字,min=1,max=10"
                },
                "items": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "属性项列表，最少1项，最多100项，每项最多50字,min=1,max=100,unique,dive,max=50,excludes=/"
                }
            },
            "required": [
                "nature",
                "name",
                "items"
            ]
        },
        ".prod.CreateSkuView": {
            "type": "object",
            "properties": {
                "price": {
                    "type": "integer",
                    "description": "规格价格，单位：分，最多1亿元,max=10000000000"
                },
                "weight": {
                    "type": "integer",
                    "description": "重量(单位: 克)，最多1000吨,max=1000000000"
                },
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.SkuItemView"
                    },
                    "description": "属性项列表,min=0,unique=Name"
                }
            }
        },
        ".prod.DefaultResp": {
            "type": "object",
            "properties": {
                "status": {
                    "type": "boolean",
                    "description": "请求是否成功"
                },
                "error_code": {
                    "type": "string",
                    "description": "细粒度业务错误码，一般仅用于判定业务错误特定分支，如果不判定可以简易将此时的error_message展示给前端；其他类别时error_code为锁定字段\nInvalidArgument~BAD_REQUEST；AuthenticatedError~Unauthenticated； UserCancelled~USER_CANCELLED；SystemError~SYSTEM_ERROR"
                },
                "error_message": {
                    "type": "string",
                    "description": "错误描述"
                },
                "error_type": {
                    "type": "string",
                    "description": "错误类型: InvalidArgument~参数错误；AuthenticatedError~身份验证错误；BizError~业务错误；UserCancelled~调用方取消；SystemError~系统错误"
                }
            },
            "description": "标准返回结构"
        },
        ".prod.DeletePropertyGroupRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "name": {
                    "type": "string",
                    "description": "分组名称，最多10个字,min=1,max=10"
                }
            },
            "required": [
                "name"
            ]
        },
        ".prod.EditMenuProdRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "menu_id": {
                    "type": "integer",
                    "description": "供货组ID"
                },
                "prod_id": {
                    "type": "integer",
                    "description": "商品ID"
                },
                "skus": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.EditMenuSkuView"
                    },
                    "description": "规格价格列表"
                }
            }
        },
        ".prod.EditMenuRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "id": {
                    "type": "integer",
                    "description": "供货组ID"
                },
                "name": {
                    "type": "string",
                    "description": "供货组名称,min=1,max=50"
                },
                "pic": {
                    "type": "string",
                    "description": "供货组图片(可空),max=100"
                },
                "can_modify_price": {
                    "type": "boolean",
                    "description": "供货组是否允许经销商改价"
                }
            },
            "required": [
                "id",
                "name"
            ]
        },
        ".prod.EditMenuSkuView": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "规格ID"
                },
                "price": {
                    "type": "integer",
                    "description": "规格价格"
                }
            }
        },
        ".prod.EditProdRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "id": {
                    "type": "integer",
                    "description": "商品ID"
                },
                "prod_type_id": {
                    "type": "integer",
                    "description": "商品类别ID"
                },
                "name": {
                    "type": "string",
                    "description": "商品名称，最多100字,min=1,max=100,excludes=/"
                },
                "phonetic": {
                    "type": "string",
                    "description": "拼音简码(超过10字时，取前10字拼音首字母作为拼音简码),max=10"
                },
                "unit": {
                    "type": "string",
                    "description": "零售单位，最多4个字,min=1,max=4"
                },
                "title_pics": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "主图列表，最多4张图片，单个图片链接最多100个字符,min=0,max=4,dive,max=100,endswith=jpg|endswith=jpeg|endswith=png|endswith=gif|endswith=mp4"
                },
                "detail_pics": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "明细图片列表，最多20张图片，单个图片链接最多100个字符,min=0,max=20,dive,max=100,endswith=jpg|endswith=jpeg|endswith=png|endswith=gif|endswith=mp4"
                },
                "detail_description": {
                    "type": "string",
                    "description": "明细描述,max=300"
                },
                "sku_list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.CreateSkuView"
                    },
                    "description": "规格列表,min=1,max=20"
                }
            },
            "required": [
                "id",
                "prod_type_id",
                "name",
                "unit",
                "sku_list"
            ]
        },
        ".prod.EditProdTypeRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "name": {
                    "type": "string",
                    "description": "类别名称, 1~50字符，不允许包含斜线,min=1,max=50,excludes=/"
                },
                "parent_id": {
                    "type": "integer",
                    "description": "父类别ID"
                },
                "id": {
                    "type": "integer",
                    "description": "待编辑类别ID"
                }
            },
            "required": [
                "id"
            ]
        },
        ".prod.EditPropertyGroupRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "name": {
                    "type": "string",
                    "description": "分组名称，最多10个字,min=1,max=10"
                },
                "items": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "属性项列表，最少1项，最多100项，每项最多50字,min=1,max=100,unique,dive,max=50,excludes=/"
                }
            },
            "required": [
                "name",
                "items"
            ]
        },
        ".prod.GetMenuListResponse": {
            "type": "object",
            "properties": {
                "menus": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.MenuView"
                    },
                    "description": "供货组列表"
                }
            }
        },
        ".prod.GetMenuProdListRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "menu_id": {
                    "type": "integer",
                    "description": "供货组ID"
                },
                "page_no": {
                    "type": "integer",
                    "description": "页数,min=1"
                },
                "page_size": {
                    "type": "integer",
                    "description": "每页数量（不超过100）,min=1,max=100"
                },
                "prod_type_id": {
                    "type": "integer",
                    "description": "商品类别ID"
                },
                "query": {
                    "type": "string",
                    "description": "商品名称搜索关键字"
                },
                "excluded_prod_ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    },
                    "description": "排除商品ID序列（用于非http请求，外部主动需要排除一部分商品展示下拉框的场景）"
                }
            },
            "required": [
                "page_no",
                "page_size"
            ]
        },
        ".prod.GetProdInfoRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "id": {
                    "type": "integer",
                    "description": "对象ID"
                }
            },
            "required": [
                "id"
            ]
        },
        ".prod.GetProdListRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "page_no": {
                    "type": "integer",
                    "description": "页数,min=1"
                },
                "page_size": {
                    "type": "integer",
                    "description": "每页数量（不超过100）,min=1,max=100"
                },
                "nature": {
                    "type": "integer",
                    "description": "商品类型,in_enum"
                },
                "prod_type_id": {
                    "type": "integer",
                    "description": "商品类别ID"
                },
                "query": {
                    "type": "string",
                    "description": "商品名称搜索关键字"
                },
                "excluded_menu_id": {
                    "type": "integer",
                    "description": "排除供货组ID(需要排除已在指定供货组的商品，用于向供货组添加商品下拉框)"
                },
                "excluded_prod_ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    },
                    "description": "排除商品ID序列（用于非http请求，外部主动需要排除一部分商品展示下拉框的场景）"
                }
            },
            "required": [
                "page_no",
                "page_size"
            ]
        },
        ".prod.GetProdListResponse": {
            "type": "object",
            "properties": {
                "total": {
                    "type": "integer",
                    "description": "总数量"
                },
                "prods": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.SimpleProdView"
                    },
                    "description": "商品列表"
                }
            }
        },
        ".prod.GetProdNatureResponse": {
            "type": "object",
            "properties": {
                "nature_list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.NatureView"
                    }
                }
            }
        },
        ".prod.GetProdTypeListRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "nature": {
                    "type": "integer",
                    "description": "商品类型,in_enum"
                }
            }
        },
        ".prod.GetProdTypeListResponse": {
            "type": "object",
            "properties": {
                "prod_types": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.ProdTypeView"
                    },
                    "description": "商品类别列表"
                }
            }
        },
        ".prod.GetPropertyGroupRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "nature": {
                    "type": "integer",
                    "description": "商品类型,in_enum"
                }
            }
        },
        ".prod.GetPropertyGroupResponse": {
            "type": "object",
            "properties": {
                "groups": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.GroupView"
                    },
                    "description": "分组列表"
                }
            }
        },
        ".prod.GroupView": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string",
                    "description": "分组名称"
                },
                "items": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "属性项列表"
                }
            }
        },
        ".prod.ImportProdRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "nature": {
                    "type": "integer",
                    "description": "商品类型,in_enum"
                },
                "link": {
                    "type": "string",
                    "description": "文件链接,endswith=xls|endswith=xlsx|endswith=csv"
                },
                "update_mode": {
                    "type": "boolean",
                    "description": "上传模式，false~跳过同名商品，true~更新同名商品"
                }
            },
            "required": [
                "nature",
                "link"
            ]
        },
        ".prod.ImportTaskResp": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "任务ID"
                }
            }
        },
        ".prod.MenuView": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "供货组ID"
                },
                "name": {
                    "type": "string",
                    "description": "供货组名称"
                },
                "pic": {
                    "type": "string",
                    "description": "供货组图片"
                },
                "can_modify_price": {
                    "type": "boolean",
                    "description": "供货组是否允许经销商改价"
                },
                "stores": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.StoreSimpleView"
                    },
                    "description": "关联门店ID序列"
                },
                "prod_count": {
                    "type": "integer",
                    "description": "商品数量"
                }
            }
        },
        ".prod.NatureView": {
            "type": "object",
            "properties": {
                "nature": {
                    "type": "integer",
                    "description": "商品类型"
                },
                "count": {
                    "type": "integer",
                    "description": "商品数量"
                }
            }
        },
        ".prod.ProdPropertyGroupView": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string",
                    "description": "商品内分组名称"
                },
                "items": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "商品内属性项序列"
                }
            }
        },
        ".prod.ProdTypeView": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "商品类别ID"
                },
                "name": {
                    "type": "string",
                    "description": "名称"
                },
                "count": {
                    "type": "integer",
                    "description": "关联商品数量"
                },
                "subs": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.ProdTypeView"
                    },
                    "description": "子类列表"
                }
            }
        },
        ".prod.ProdView": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "商品ID"
                },
                "name": {
                    "type": "string",
                    "description": "商品名称"
                },
                "prod_type_id": {
                    "type": "integer",
                    "description": "商品类别ID"
                },
                "prod_type_name": {
                    "type": "string",
                    "description": "商品类别名称"
                },
                "phonetic": {
                    "type": "string",
                    "description": "拼音简码"
                },
                "unit": {
                    "type": "string",
                    "description": "零售单位"
                },
                "title_pics": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "主图列表"
                },
                "detail_pics": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "明细图片列表"
                },
                "detail_description": {
                    "type": "string",
                    "description": "明细描述"
                },
                "groups": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.ProdPropertyGroupView"
                    },
                    "description": "属性组列表"
                },
                "skus": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.SkuView"
                    },
                    "description": "规格列表"
                },
                "nature": {
                    "type": "integer",
                    "description": "商品类型(不可编辑)"
                },
                "status": {
                    "type": "boolean",
                    "description": "商品状态"
                }
            }
        },
        ".prod.SelectionMenuProdFullRequest": {
            "type": "object",
            "properties": {
                "sg_id": {
                    "type": "integer",
                    "description": "品牌ID"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "店铺ID(用于匹配供货组ID)"
                },
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    },
                    "description": "对象ID序列,unique"
                }
            },
            "description": "获取待更新供货组商品列表（用于下游系统接到供货组更新消息后查询供货组商品更新信息），不支持http",
            "required": [
                "sg_id",
                "p_store_id",
                "ids"
            ]
        },
        ".prod.SelectionMenuProdListRequest": {
            "type": "object",
            "properties": {
                "sg_id": {
                    "type": "integer",
                    "description": "品牌ID"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "prod_ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    },
                    "description": "货架商品ID序列"
                },
                "query_type_id": {
                    "type": "integer",
                    "description": "分类ID"
                },
                "query": {
                    "type": "string",
                    "description": "商品名称"
                },
                "page_no": {
                    "type": "integer",
                    "description": "页数,min=1"
                },
                "page_size": {
                    "type": "integer",
                    "description": "每页数量（不超过100）,min=1,max=100"
                }
            },
            "required": [
                "sg_id",
                "page_no",
                "page_size"
            ]
        },
        ".prod.SelectionObjectListRequest": {
            "type": "object",
            "properties": {
                "sg_id": {
                    "type": "integer",
                    "description": "品牌ID"
                },
                "object_keys": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "商品规格列表,unique,dive,contains=-"
                }
            },
            "description": "用于仓库反向查询对象信息(无需p_store_id)",
            "required": [
                "sg_id",
                "object_keys"
            ]
        },
        ".prod.SelectionObjectListResponse": {
            "type": "object",
            "properties": {
                "objects": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.SelectionObjectView"
                    }
                }
            }
        },
        ".prod.SelectionObjectView": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string",
                    "description": "商品-规格ID"
                },
                "name": {
                    "type": "string",
                    "description": "商品名称"
                },
                "price": {
                    "type": "integer",
                    "description": "对象价格"
                },
                "type_id": {
                    "type": "integer",
                    "description": "对象类别ID"
                },
                "type_name": {
                    "type": "string",
                    "description": "对象类别名称"
                },
                "unit": {
                    "type": "string",
                    "description": "对象单位"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "对象归属"
                },
                "sku_name": {
                    "type": "string",
                    "description": "规格名称"
                }
            }
        },
        ".prod.SelectionProdInfoRequest": {
            "type": "object",
            "properties": {
                "sg_id": {
                    "type": "integer",
                    "description": "品牌ID"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "prod_id": {
                    "type": "integer",
                    "description": "品牌ID"
                },
                "skip_check": {
                    "type": "boolean",
                    "description": "是否跳过检查p_store_id（针对前端加载已下架/删除商品详情特殊处理）"
                }
            },
            "required": [
                "sg_id",
                "prod_id"
            ]
        },
        ".prod.SelectionProdListRequest": {
            "type": "object",
            "properties": {
                "sg_id": {
                    "type": "integer",
                    "description": "品牌ID"
                },
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    },
                    "description": "对象ID序列,unique"
                },
                "need_store_price": {
                    "type": "boolean",
                    "description": "是否需要返回供货组规格价格"
                }
            },
            "description": "获取待更新商品列表（用于下游系统查看商品更新信息，无需p_store_id）",
            "required": [
                "sg_id",
                "ids"
            ]
        },
        ".prod.SelectionProdTypesRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID，http模式必传，传入ids不会生效，此时该时刻允许跳过"
                },
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    },
                    "description": "对象ID序列，选传，传入时返回指定类别名称列表；不传入时返回全部(用于商品创建等下拉框)，http方法不使用该字段,unique"
                }
            }
        },
        ".prod.SelectionProdTypesResponse": {
            "type": "object",
            "properties": {
                "prod_types": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.SimpleProdTypeView"
                    },
                    "description": "分类列表"
                }
            }
        },
        ".prod.SelectionProdView": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "商品ID"
                },
                "name": {
                    "type": "string",
                    "description": "商品名称"
                },
                "prod_type_id": {
                    "type": "integer",
                    "description": "商品类别ID"
                },
                "prod_type_name": {
                    "type": "string",
                    "description": "商品类别名称"
                },
                "phonetic": {
                    "type": "string",
                    "description": "拼音简码"
                },
                "unit": {
                    "type": "string",
                    "description": "零售单位"
                },
                "skus": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.SelectionSkuSimpleView"
                    },
                    "description": "规格列表"
                },
                "nature": {
                    "type": "integer",
                    "description": "商品类型(不可编辑)"
                },
                "pic": {
                    "type": "string",
                    "description": "商品首图"
                },
                "group_list": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "商品分组列表"
                },
                "group_detail": {
                    "type": "string",
                    "description": "商品分组明细"
                }
            }
        },
        ".prod.SelectionProdsFullResponse": {
            "type": "object",
            "properties": {
                "prods": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.SelectionProdView"
                    }
                },
                "custom_skus": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.SelectionProdsFullResponse.StoreCustomPrice"
                    },
                    "description": "是否返回供货组（门店）自定义价格"
                }
            }
        },
        ".prod.SelectionProdsFullResponse.StoreCustomPrice": {
            "type": "object",
            "properties": {
                "store_id": {
                    "type": "integer",
                    "description": "门店ID"
                },
                "sku_id": {
                    "type": "integer",
                    "description": "规格ID"
                },
                "price": {
                    "type": "integer",
                    "description": "规格自定义价格"
                }
            }
        },
        ".prod.SelectionSkuSimpleView": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "规格ID"
                },
                "name": {
                    "type": "string",
                    "description": "规格序列"
                },
                "price": {
                    "type": "integer",
                    "description": "规格价格"
                },
                "weight": {
                    "type": "integer",
                    "description": "规格重量"
                },
                "items": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "规格属性组"
                }
            }
        },
        ".prod.SetMenuStoresRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "id": {
                    "type": "integer",
                    "description": "供货组ID"
                },
                "store_ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    },
                    "description": "门店ID序列,unique,dive,gt=0"
                }
            },
            "required": [
                "id"
            ]
        },
        ".prod.SimpleProdTypeView": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "分类ID"
                },
                "name": {
                    "type": "string",
                    "description": "二级分类名称（全程拼接：父类目名称/子类目名称）"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "二级分类归属"
                }
            },
            "description": "组内商品类别"
        },
        ".prod.SimpleProdView": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "商品ID"
                },
                "name": {
                    "type": "string",
                    "description": "商品名称"
                },
                "prod_type_id": {
                    "type": "integer",
                    "description": "商品类别ID"
                },
                "prod_type_name": {
                    "type": "string",
                    "description": "商品类别名称"
                },
                "price_range": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    },
                    "description": "价格范围，形式[1000, 2000]，表示10元~20元，精确到分"
                },
                "title_pic": {
                    "type": "string",
                    "description": "主图"
                },
                "skus": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.SimpleSkuView"
                    },
                    "description": "规格价格列表"
                }
            }
        },
        ".prod.SimpleSkuView": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "规格ID"
                },
                "name": {
                    "type": "string",
                    "description": "规格名称"
                },
                "price": {
                    "type": "integer",
                    "description": "规格价格"
                }
            }
        },
        ".prod.SkuItemView": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string",
                    "description": "分组名称，最多10个字,min=1,max=10"
                },
                "item": {
                    "type": "string",
                    "description": "属性项名称，最多50字,min=1,max=50"
                }
            },
            "required": [
                "name",
                "item"
            ]
        },
        ".prod.SkuView": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "规格ID"
                },
                "name": {
                    "type": "string",
                    "description": "规格名称"
                },
                "price": {
                    "type": "integer",
                    "description": "规格价格"
                },
                "weight": {
                    "type": "integer",
                    "description": "重量(单位: 克)"
                },
                "items": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "属性项列表"
                }
            }
        },
        ".prod.StoreSimpleView": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "门店ID"
                },
                "name": {
                    "type": "string",
                    "description": "门店名称"
                }
            }
        },
        ".prod.TaskListRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.prod.WebToken",
                    "description": "token, http调用需要在header传入；rpc则可以直接包装对象"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "nature": {
                    "type": "integer",
                    "description": "商品类型,in_enum"
                },
                "page_no": {
                    "type": "integer",
                    "description": "页数,min=1"
                },
                "page_size": {
                    "type": "integer",
                    "description": "每页数量（不超过100）,min=1,max=100"
                }
            },
            "required": [
                "nature",
                "page_no",
                "page_size"
            ]
        },
        ".prod.TaskListResp": {
            "type": "object",
            "properties": {
                "tasks": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.prod.TaskView"
                    },
                    "description": "任务列表（时间倒序）"
                },
                "total": {
                    "type": "integer",
                    "description": "任务个数"
                }
            }
        },
        ".prod.TaskProgress": {
            "type": "object",
            "properties": {
                "progress": {
                    "type": "integer",
                    "description": "进度（-1~失败，无需继续轮询，100~成功）"
                }
            }
        },
        ".prod.TaskView": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "任务ID"
                },
                "operator": {
                    "type": "string",
                    "description": "操作人"
                },
                "upload_time": {
                    "type": "string",
                    "description": "操作时间"
                },
                "status": {
                    "type": "integer",
                    "description": "操作状态"
                },
                "extra": {
                    "type": "string",
                    "description": "备注信息"
                }
            }
        },
        ".prod.WebToken": {
            "type": "object",
            "properties": {
                "emp_id": {
                    "type": "integer",
                    "description": "员工ID"
                },
                "brand_id": {
                    "type": "integer",
                    "description": "品牌ID"
                },
                "name": {
                    "type": "string",
                    "description": "员工姓名"
                },
                "g_id": {
                    "type": "string",
                    "description": "统一账号ID"
                }
            },
            "description": "web token 标准结构",
            "required": [
                "emp_id",
                "brand_id"
            ]
        }
    }
},
            dom_id: '#swagger-ui',
            validatorUrl: null,
            presets: [
                SwaggerUIBundle.presets.apis,
                SwaggerUIStandalonePreset
            ],
            plugins: [
                SwaggerUIBundle.plugins.DownloadUrl
            ],
            layout: "StandaloneLayout"
        })

        window.ui = ui
    }
</script>
</body>

</html>